package com.cmower.javapoint.javatutorial.eleven;

public class AssignmentOperator1 {
    public static void main(String[] args) {
        short a = 10;
        short b = 10;
//a+=b;//a=a+b internally so fine
        a = (short)(a + b);// 发生编译错误，因为 10+10=20 现在变成了 int
        System.out.println(a);
    }
}
